package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.BalanceLog;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface BalanceLogService extends IService<BalanceLog> {

    /**
     * 流水号获取
     *
     * @param code 流水号
     */
    BalanceLog getByCode(String code);

    /**
     * 按订单号撤回
     *
     * @return
     */
    boolean revocationPayed(String orderCode, String staffUid, String staffName, String remark);

    Page<BalanceLog> pageList(PageUtil pageUtil, Integer projectType, Integer income, String keyword,
                              Integer payType, Integer status, String beginTime, String endTime);

}
